using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace Cuahsi.Data.Interop.WaterML2.swe_20
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [Serializable()]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [XmlType(Namespace = "http://www.opengis.net/swe/2.0")]
    [XmlRoot("TextEncoding", Namespace = "http://www.opengis.net/swe/2.0", IsNullable = false)]
    [DataContract(Name = "TextEncodingType", Namespace = "http://www.opengis.net/swe/2.0")]
    public partial class TextEncodingType : AbstractEncodingType
    {

        private bool collapseWhiteSpacesField;

        private string decimalSeparatorField;

        private string tokenSeparatorField;

        private string blockSeparatorField;

        public TextEncodingType()
        {
            this.collapseWhiteSpacesField = true;
            this.decimalSeparatorField = ".";
        }

        [XmlAttribute()]
        [DefaultValue(true)]
        [DataMember()]
        public bool collapseWhiteSpaces
        {
            get
            {
                return this.collapseWhiteSpacesField;
            }
            set
            {
                this.collapseWhiteSpacesField = value;
            }
        }

        [XmlAttribute()]
        [DefaultValue(".")]
        [DataMember()]
        public string decimalSeparator
        {
            get
            {
                return this.decimalSeparatorField;
            }
            set
            {
                this.decimalSeparatorField = value;
            }
        }

        [XmlAttribute()]
        [DataMember()]
        public string tokenSeparator
        {
            get
            {
                return this.tokenSeparatorField;
            }
            set
            {
                this.tokenSeparatorField = value;
            }
        }

        [XmlAttribute()]
        [DataMember()]
        public string blockSeparator
        {
            get
            {
                return this.blockSeparatorField;
            }
            set
            {
                this.blockSeparatorField = value;
            }
        }
    }
}